package cn.hss.object.inter;

/**
 * @author 作者：HeShaoShuai
 * @Email 邮箱：2569819541@qq.com
 * @Date 日期：2023/4/25 19:51
 * @Package 包名：cn.hss.object.inter
 * @Project 项目名：JavaSE
 * @Version 1.0
 */
public class Car extends Vehicle implements IPower{
	private String carNumber;

	public Car(String brand,String color,String carNumber) {
		super(brand, color);
		this.carNumber = carNumber;
	}

	@Override
	public void power() {
		System.out.println("汽车通过汽油提供动力");
	}

	@Override
	public void run() {
		System.out.println("汽车通过内燃机驱动行驶");
	}
}